<?php
class FeedbackModel extends Model
{
    private $db;
    function  __construct()
    {
        $this->db = DataProvider::getInstance();
        parent::__construct();
    }

    public function getFeedbackList()
    {
        return $this->db->_query('SELECT * FROM comment WHERE post_id is null ORDER BY id DESC')->getAll();
    }

    public function delete($id)
    {
        $this->db->remove('comment', array('id'=>$id));
    }
}
 
